/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.edu.thptduongbachmai.services;

import java.sql.Connection;
import java.util.concurrent.BlockingQueue;

/**
 *
 * @author Son
 */
public abstract class DBService {

    protected String _host;
    protected int _port;
    protected String _dbname;
    protected String _username;
    protected String _password;
    protected String _url;
    protected int _poolSize;
    protected BlockingQueue<Connection> _pool;
    protected static final Object _mutex = new Object();
    public abstract Connection getDbConnection() ;
    public abstract void releaseDbConnection(Connection conn) ;

}
